/******************************************************************************
* This file is part of is32p218 platform,
* Copyright (c) 2009 HangZhou InfoStrong CO.,LTD. All rights reserved.
* This software may only be used under the terms of a valid, current,
* end user license from InfoStrong.
* Nothing else gives you the right to use this software.   
*
* Name:   def.h
* Desc:   Type define header file
* Author: Jerry
* Date:   2009-11-16
* Note:   
* History:
*
******************************************************************************/
#include "option.h"

#ifndef __DEF_H__
#define __DEF_H__

#ifdef __cplusplus
extern "C" {
#endif

#define U8 unsigned char
#define U16 unsigned short
#define U32 unsigned int
#define U64 unsigned long long
#define S8 char
#define S16 short int
#define S32 int
#define VU8 volatile U8
#define VU16 volatile U16
#define VU32 volatile U32
#define VS8 volatile S8
#define VS16 volatile S16
#define VS32 volatile S32

#define BOOL S32
#define INT_FUNC  void

#ifndef TRUE
#define TRUE	1
#endif
#ifndef FALSE
#define FALSE	0
#endif

#ifndef NULL
#define NULL	0
#endif


#define PACKED	__packed	


#ifdef SYS_DEBUG_FLG
#define IS_ASSERT(x)		IS_ASSERT_debug( x, __MODULE__, __LINE__ )
void IS_ASSERT_debug( BOOL assert_flg, S8 *p_file_name, U32 line );
#else
#define IS_ASSERT(x)
#endif

#ifdef __cplusplus
}
#endif
#endif /*__DEF_H__*/

